import request from '@/request';
import type {editFormData , addFormData} from '../@types/index';

/**获取标题和简介列表*/
export const getBlogTiltleBrfie = (params: { page: number, pageSize: number , title ?: string , brfie ?: string}) => {
    return request({
        url: '/api/v2/admin/getBlogTiltleBrfie',
        method: 'get',
        params
    })
} 

/**添加标题和简介*/
export const addBlogTiltleBrfie = (data: addFormData ) => request({
    url: '/api/v2/admin/addBlogTiltleBrfie',
    method: 'post',
    data
}) 

/**删除标题和简介*/
export const delBlogTiltleBrfie = (data: { ID: string }) => request({
    url: '/api/v2/admin/delBlogTiltleBrfie',
    method: 'post',
    data
})

/**更新标题和简介*/
export const updataBlogTiltleBrfie = (data: editFormData) => request({
    url: '/api/v2/admin/updataBlogTiltleBrfie',
    method: 'post',
    data
})